-
Notifications
You must be signed in to change notification settings - Fork 44
renamed clientId to userAgentHeader in connect args #281
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
lib/contracts/IDBSQLClient.ts
Outdated
| port?: number; | ||
| path: string; | ||
| clientId?: string; | ||
| userAgentHeader?: string; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. The only thing I'd change - maybe use userAgentEntry, like in Python connector
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
| // Example: | ||
| // - NodejsDatabricksSqlConnector/0.1.8-beta.1 (Node.js 16.13.1; Darwin 21.5.0) | ||
| // UserAgent ::= <ProductName> '/' <ProductVersion> '(' <Comment> ')' | ||
| // ProductName ::= 'NodejsDatabricksSqlConnector' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit : include the where in comment
Description
This PR adds
userAgentHeaderoption in connect call, so users can configure the user agent string generated.Note: clientId arg in
connectoptions is renamed to userAgentHeader. The clientId inOAuthManageroptions exists and corresponds to the Databricks Service Principal clientId.Testing
unit tests